package com.demon.auto.model.message;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 客户端消息
 *
 * @version 1.0
 * @author huangrz
 * @date 2025/02/17 11:53
 */
@Accessors(chain = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class WebSocketMessage implements Serializable {

    public static final String ERROR = "error";
    public static final String HEARTBEAT = "heartbeat";
    public static final String SIGN = "sign";
    public static final String SIGN_PROCESS = "sign_process";

    private String type;

    private String data;

}
